<?php
session_start();
include("../controller/Category.class.php");
include("../model/Db.class.php");
$db = new Db();
$c= new Category($db);
$act =$_GET['act'];
if($act=="getAllCategory"){
	$rows=$c->getAllCategory();
	echo json_encode($rows);
}
if($act=="getCategory"){
	$rows=$c->getCategory();
	echo json_encode($rows);
}

 ?>